﻿using System.Web.Security;

namespace BBICMS.WebUI.Models
{
    public class RoleEvaluator
    {
        public bool CanEdit
        {
            get 
            {
                return  Roles.IsUserInRole("Administrators") || Roles.IsUserInRole("Users");
            }
        }

        public bool CanDelete
        {
            get 
            {
                return Roles.IsUserInRole("Administrators");
            }
        }
    }
}